package main

import "fmt"

type myInt int

/*
定义函数类型
*/
type calc func(a, b int) (int, int, int, int)

func main() {
	// 匿名函数
	var cal calc = func(a, b int) (int, int, int, int) {
		return a + b, a - b, a * b, a / b
	}
	fmt.Printf("%T\n", cal)

	var a int = 10
	var b myInt = 10 + myInt(a)

	fmt.Printf("%T %T\n", a, b)
}
